package com.yuch.dao;

import com.yuch.entity.Book;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface BookDao {
    @Select("select * from role where id = #{id}")
    public Book getById(Integer id);

    @Select("select * from role  ")
    public List<Book> getList(   );
}
